package com.sau.pixelcart.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 库存预警事件表
 * </p>
 *
 * @author Inton
 * @since 2025-03-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("inventory_alert")

public class InventoryAlert implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "预警记录ID")
    @TableId(value = "alert_id", type = IdType.ASSIGN_UUID)
    private String alertId;

    @ApiModelProperty(value = "触发预警的商品ID")
    private String productId;

    @ApiModelProperty(value = "触发时间")
    private LocalDateTime triggerTime;

    @ApiModelProperty(value = "触发时库存量")
    private Integer currentStock;

    @ApiModelProperty(value = "触发阈值")
    private Integer threshold;

    @ApiModelProperty(value = "处理状态")
    private String status;

    @ApiModelProperty(value = "处理人ID（关联user表）")
    private String processedBy;

    @ApiModelProperty(value = "处理时间")
    private LocalDateTime processedTime;


}
